home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 3069 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.2 KB

  1. Path: news.ios.com!usenet
  2. From: John Leonard <leonardj@tribeca.ios.com>
  3. Newsgroups: comp.lang.c++
  4. Subject: C++ syntax
  5. Date: Sun, 21 Jan 1996 20:52:26 -0500
  6. Organization: 12th of Nov, Inc
  7. Message-ID: <3102EDDA.45A6@tribeca.ios.com>
  8. NNTP-Posting-Host: ppp-22.ts-9.hck.idt.net
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 2.0b4 (Win95; I)
  13.  
  14. In the book Borland C++ 4.5 Object-Oriented Programming by Ted Faison, Sam's Publishing, page 
  15. 603, there is an example using the Borland template class library. First, the idea is to instantiate 
  16. a class of type TListImp(from a template) and then instantiate an object of that type. And then to 
  17. instantiate a class of type TListIteratorImp from a template, and then to instantiate an object of 
  18. that type. The TListIterator object will be used to move through the TListImp object. The details 
  19. about these class templates are not what my question is about, but rather the syntax of one of the 
  20. lines in the program is:
  21.      TListIteratorImp<string>     next(a);  // where a is an object of type TListImp<string>
  22.      ...
  23.      while(next)     // ??
  24.      ...
  25.      What does this line mean? How does it work?
  26.  
  27.      John
  28.